﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Test.ModelFactories
{
    public class CommentsFactory
    {
        private int _count = 0;

        public CommentsFactory()
        {

        }

        public Comment CreateEntity(string post, string author)
        {
            var comment = new Comment(
                            post,
                            author,
                            String.Format("This is comment {0} wrote by {1}", _count, author)
                          );
            comment.RowKey = Guid.NewGuid().ToString();

            _count++;

            return comment;
        }

        public List<Comment> CreateList(int count, string post, string author)
        {
            var list = new List<Comment>();

            for (int i = 0; i < 0; i++)
            {
                list.Add(CreateEntity(post, author));
                ++_count;
            }

            return list;
        }
    }
}
